\documentclass[11pt]{article}

\begin{document}

$something{here}$
{this ought to be ignored as well}
{{}}}o {}
$${{sd}}}$$
\begin{proof}
{something Lots of meaningless brackets.}
\end{proof}
\end{document}
